package com.ysdz.tibetan.tibetanmini.user.service;

import com.ysdz.tibetan.tibetanmini.user.beans.Auth;
import com.ysdz.tibetan.tibetanmini.user.beans.Consumer;
import com.ysdz.tibetan.tibetanmini.user.beans.Role;
import com.ysdz.tibetan.tibetanmini.user.beans.UserRole;
import com.ysdz.tibetan.tibetanminicommons.common.ReturnMsg;

import java.util.List;

public interface ConsumerService {

    ReturnMsg getUserList();

    Consumer findUserByUsername(String username);

    List<Auth> findAuthByUserId(Long id);

    List<Role> findRoleByUserId(Long id);

    void authentication(String userId);

    boolean passAuthentication(String userId);

    void updateRole(UserRole userRole);
}
